#include<iostream>
#include<vector>

class A
{
public:
    int _a;
};
class B : public A
{
public:
    int _b;
};
std::vector<A*> array;
int main()
{
    A *a1,*a2,*a3,*a4;
    array.push_back(a1);
    array.push_back(a2);
    array.push_back(a3);
    array.push_back(a4);
    for(auto arr : array)
    {
        std::cout<<typeid(arr).name()<<std::endl;
    }

    return 0;
}